
const setHours = function (oMyDate, hours) {
    oMyDate.setHours(hours);
}
const setMinutes = function (oMyDate, minutes) {
    oMyDate.setMinutes(minutes);
}
const setSeconds = function (oMyDate, secondes) {
    oMyDate.setSeconds(secondes);
}
class MyDate {
    oDate;
    constructor(oDate) {
        this.oDate = oDate || new Date();
    }
    setHours(hours) {
        this.oDate.setHours(hours)
    }
    setMinutes(minutes) {
        this.oDate.setMinutes(minutes)
    }
    setSeconds(seconds) {
        this.oDate.setSeconds(seconds);
    }
    setDate(oDate) {
        this.oDate = oDate;
    }
    getDate() {
        return new Date(this.oDate.valueOf());
    }
}
export const getDateRange = function () {
    const oMyDate = new MyDate();
    setHours(oMyDate, 0);
    setMinutes(oMyDate, 0);
    setSeconds(oMyDate, 0);
    const startDate = oMyDate.getDate();
    setHours(oMyDate, 23);
    setMinutes(oMyDate, 59);
    setSeconds(oMyDate, 59);
    const endDate = oMyDate.getDate();
    return [startDate, endDate]
}